package com.biz.primus.app.erpbridge.controller;

import com.biz.primus.app.erpbridge.service.StockBridgeService;
import com.biz.primus.base.support.rest.vo.JsonResult;
import com.biz.primus.model.stock.vo.IncrDepotStockReqVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * StockBridgeController
 *
 * @author JKLiues
 * @date 2017年11月17日
 */
@RestController
@RequestMapping("bridge/stock")
public class StockBridgeController extends BaseBridgeController{

    @Autowired
    private StockBridgeService stockBridgeService;

    /**
     * 增量库存
     *
     * @param reqVo 请求vo
     */
    @PostMapping("handleIncrement")
    public JsonResult handleIncrement(IncrDepotStockReqVo reqVo) {
        stockBridgeService.stockIncrement(reqVo);
        return new JsonResult();
    }
}